home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Programming / vahunz / source / ugly / umemory.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-17  |  2.3 KB  |  74 lines

  1. /*
  2.  * This source file is part of Vahunz,
  3.  * a tool to make source code un-/more legible.
  4.  *
  5.  *--------------------------------------------------------------------------
  6.  *
  7.  * Vahunz and the Ugly library are Copyright (C) 1998 by
  8.  * Thomas Aglassinger <agi@giga.or.at>
  9.  *
  10.  * All rights reserved.
  11.  *
  12.  * Refer to the manual for more information.
  13.  *
  14.  *--------------------------------------------------------------------------
  15.  *
  16.  * Ubiqx library is Copyright (C) 1991-1998 by
  17.  * Christopher R. Hertel <crh@ubiqx.mn.org>
  18.  *
  19.  * Ubiqx library is free software; you can redistribute it and/or
  20.  * modify it under the terms of the GNU Library General Public
  21.  * License as published by the Free Software Foundation; either
  22.  * version 2 of the License, or (at your option) any later version.
  23.  *
  24.  */
  25. #ifndef d9E
  26. #define d9E 
  27. #include <stdlib.h>
  28. #include "utypes.h"
  29. struct z1U
  30. {
  31. struct z1U *k0Z;
  32. void *ptr; 
  33. UBYTE *t5L; 
  34. UBYTE *s9E; 
  35. size_t c8H; 
  36. STRPTR e9R; 
  37. ULONG p8T; 
  38. UBYTE c2O; 
  39. };
  40. typedef struct z1U j6V;
  41. #if v2E
  42. #define o4N(c8H) e3L( c8H, __FILE__, __LINE__ )
  43. #define x8C(ptr) if ( ptr ) { t2B( ptr, __FILE__, __LINE__ ); ptr = NULL; }
  44. #define c0Y(ptr,c8H) r4A( ptr, c8H, __FILE__, __LINE__ );
  45. #define z5K(count,c8H) f7L( count,c8H,__FILE__,__LINE__ );
  46. #define n7Ug(msg) r9C( msg, __FILE__, __LINE__, __DATE__, __TIME__ )
  47. #define o1M(msg) a9M( msg, __FILE__, __LINE__, __DATE__, __TIME__ )
  48. #define d6O(msg) p4No( msg, __FILE__, __LINE__ )
  49. #define f7E i0G
  50. #else
  51. #define o4N(c8H) p6U(c8H)
  52. #define x8C(ptr) if ( ptr ) { free(ptr); ptr=NULL; } 
  53. #define c0Y(ptr,c8H) realloc( ptr, c8H );
  54. #define z5K(count,c8H) calloc( count,c8H )
  55. #define n7Ug(msg) 
  56. #define o1M(msg) 
  57. #define d6O(msg) 
  58. #define f7E d7G
  59. #endif 
  60. #ifndef w5W
  61. extern VOID s5F(char *msg, char *e9R, size_t p8T);
  62. extern void *e3L(size_t c8H, STRPTR e9R, ULONG p8T);
  63. extern void *p6U(size_t c8H);
  64. extern void t2B(void *ptr, STRPTR e9R, ULONG p8T);
  65. extern void *r4A(void *ptr, size_t c8H, STRPTR e9R, ULONG p8T);
  66. extern void *f7L(size_t count, size_t c8H, STRPTR e9R, ULONG p8T);
  67. extern void a9M(STRPTR msg, STRPTR e9R, ULONG p8T, STRPTR date, STRPTR time);
  68. extern void r9C(STRPTR msg, STRPTR e9R, ULONG p8T, STRPTR date, STRPTR time);
  69. extern void p4No(STRPTR msg, STRPTR e9R, ULONG p8T);
  70. extern void f7E(void);
  71. extern BOOL(*i5X) (size_t c8H);
  72. #endif
  73. #endif
  74.